import {
  getMerchantInfo,
  getSubShopList,
  updateStatus,
  createSubShop,
  updateSubShop,
  setDisplay
} from '@/services/SubMerchant'

export default () => {
  const GetSubShopList = (params: any) => {
    return getSubShopList(params)
  }

  const UpdateStatus = (data: any) => {
    return updateStatus(data)
  }

  const GetMerchantInfo = (params: any) => {
    return getMerchantInfo(params)
  }

  const CreateSubShop = (data: any) => {
    return createSubShop(data)
  }

  const UpdateSubShop = (data: any) => {
    return updateSubShop(data)
  }

  const SetDisplay = (params: any) => {
    return setDisplay(params)
  }

  return {
    GetSubShopList,
    UpdateStatus,
    GetMerchantInfo,
    CreateSubShop,
    UpdateSubShop,
    SetDisplay
  }
}
